<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>script_set_cookie.jsp</title>
</head>
<body>
    <script type="text/javascript" src="http://www.a.com/set_cookie?cname=token&cval=abcdef"></script>
    <script type="text/javascript" src="http://www.b.com/set_cookie?cname=token&cval=abcdef"></script>
</body>
</html>